import request from '@/utils/request'

// 查询考试时间列表
export function listExamtime(query) {
  return request({
    url: '/generator/examtime/list',
    method: 'get',
    params: query
  })
}

// 查询考试时间详细
export function getExamtime(id) {
  return request({
    url: '/generator/examtime/' + id,
    method: 'get'
  })
}

// 新增考试时间
export function addExamtime(data) {
  return request({
    url: '/generator/examtime',
    method: 'post',
    data: data
  })
}

// 修改考试时间
export function updateExamtime(data) {
  return request({
    url: '/generator/examtime',
    method: 'put',
    data: data
  })
}

// 删除考试时间
export function delExamtime(id) {
  return request({
    url: '/generator/examtime/' + id,
    method: 'delete'
  })
}
